package com.kaibes.module.email.sender;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotBlank;

import org.springframework.stereotype.Component;

import com.kaibes.core.base.annotation.Description;

import lombok.Data;
import lombok.ToString;

@Component
@Data
@ToString
@Description("发送人信息")
public class SenderInfo {
    @Description("用户名，如“XXXX@qq.com”")
    @NotBlank
    private String username;
    @Description("这是开通“POP3/SMTP服务”功能时服务商提供的密码")
    @NotBlank
    private String password;
    @Description("邮件服务商域名，如“smtp.qq.com”")
    @NotBlank
    private String host;
    @Description("端口，默认25")
    @Min(1)
    private int port;
}
